package org.lee.domain.model.aggregates;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.lee.domain.model.vo.TreeNode;
import org.lee.domain.model.vo.TreeRoot;

import java.util.Map;

/**
 * TreeRich
 * 规则树聚合
 *
 * @author dralee
 * @date 2021-11-22 14:09:54
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TreeRich {

    /**
     * 树根
     */
    private TreeRoot treeRoot;

    /**
     * 树节点id->子节点
     */
    private Map<Long, TreeNode> treeNodeMap;
}
